import { BaseEntity, PageQuery } from '@/api/types';

// 产品图片对象
export interface ProductImage {
  id: number;
  productId: number;
  imageUrl: string;
  sort: number;
  createTime: string;
}

// 产品查询对象
export interface ProductQuery extends PageQuery {
  name?: string;
  categoryId?: number;
  status?: number;
  isHot?: number;
}

// 产品返回对象
export interface ProductVo extends BaseEntity {
  id: number;
  name: string;
  categoryId: number;
  price: string;
  description: string;
  mainImage: string;
  status: number;
  isHot: number;
  productImages: ProductImage[];
}

// 产品表单对象
export interface ProductForm {
  id?: number;
  name: string;
  categoryId: number;
  price: string;
  description: string;
  mainImage: string;
  status: number;
  isHot: number;
  productImages: ProductImage[];
} 